package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.Major;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.cvas.pojo.vo.GradeDto;
import com.lancoo.cvas.pojo.vo.MajorDto;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 年级专业
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface MajorMapper extends BaseMapper<Major> {

    void addBatch(List<Major> insertList);

    List<MajorDto> getMajor(Integer taskId);

    List<GradeDto> getGrade(Integer taskId);
}
